package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentApi {
    //查询评论列表
    List<Comment> findComments(String movementId, Integer commentType, Integer page, Integer pagesize);

    //发布评论,点赞，喜欢
    Integer save(Comment comment);

    //取消点赞，取消喜欢
    Integer delete(Long userId, String movementId, Integer commentType);

    //评论点赞
    Integer commentLike(String id);

    //取消对评论的点赞
    Integer disLike(String id);
}
